package com.ss.android.article.common.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;
import com.ss.android.article.common.http.ApiResponse;
import java.io.Serializable;

public class ActionResponse implements Parcelable, ApiResponse, Serializable {
    public static final Parcelable.Creator CREATOR;
    @SerializedName("err_no") public int mErrorCode;
    @SerializedName("err_tips") public String mErrorTips;
    private static final long serialVersionUID = -3421113862435896477L;

    static {
       CREATOR = new Creator<ActionResponse>(){

           @Override
           public ActionResponse createFromParcel(Parcel source) {
               return new ActionResponse(source);
           }

           @Override
           public ActionResponse[] newArray(int size) {
               return new ActionResponse[size];
           }
       };
    }

    public ActionResponse() {

    }

    protected ActionResponse(Parcel arg2) {

        this.mErrorCode = arg2.readInt();
        this.mErrorTips = arg2.readString();
    }

    public int describeContents() {
        return 0;
    }

    public int getErrorCode() {
        return this.mErrorCode;
    }

    public String getErrorTips() {
        return this.mErrorTips;
    }

    public void writeToParcel(Parcel arg2, int arg3) {
        arg2.writeInt(this.mErrorCode);
        arg2.writeString(this.mErrorTips);
    }
}

